<!--右侧内容开始-->
<div>
    <br/>
    <ol class="breadcrumb">
        <li class="active"><span class="glyphicon glyphicon-home" style="color:#23527c"></span>&nbsp;<mainpage></mainpage></li>
        <li class="active">运维工作台 / 参数配置管理 / 规则参数管理 / 短信优先级管理</li>
    </ol>

    <ul class="nav nav-tabs marT15">
      <li role="presentation"><a href="#/priorityManage" style="color: #555;">优先级管理</a></li>
      <li role="presentation" class="active"><a href="#/messagepriorityMent" style="color:#555;">短信优先级分配</a></li>
   </ul> 

    <div class="rightbar">
        <div id="serviceEnd" class="showEle sign1">
            <div class="left marR10 marT15">
                <span class="search-name">优先级</span>
                <select class="form-control1" ng-change='selectRuleId()'  ng-model="searchData.ruleId" name="">
                    <option value="">全部</option>
                    <option value={{row.ruleId}} ng-repeat="row in levelData">{{row.level}}</option>
                </select>
            </div>
            <div class="left marT15 marR10">
              <span class="search-name">业务端类型</span>
              <select class="form-control1" ng-change='getSms()' ng-model="searchData.svrNode" name="">
              <option value="">全部</option>
              <option value={{row.SVR_NODE}} ng-repeat="row in listData1">{{row.SVR_NODE_NAME}}</option>
              </select>
            </div>
            <div class="left marT15 marR10">
              <span class="search-name">短信类型</span>
             <select class="form-control1" ng-model="searchData.serviceCode">
             <option value="">全部</option>
             <option value={{row.serviceCode}} ng-repeat="row in listData2">{{row.serviceName}}</option>
             </select>
            </div>
            <div class="left marT15 marR10">
                <span class="search-name">是否分配优先级</span>
                <select class="form-control1" ng-change='selectIsLevel()' ng-model="searchData.isLevel">
                    <option value="">全部</option>
                    <option value="1">已分配</option>
                    <option value="0">未分配</option>
                </select>
            </div>
              <a href="javascript:;" class=" btn btn-sm btn-primary left marT15 marR10" id="search" ng-click='search()'><span class="glyphicon glyphicon-search"></span></a>
       
       <div class="table-box">
            <table class="table table-bordered table-striped text-center bg-info marT15">
                <thead >
                <tr class="info">
                    <th class="text-center">序号</th>
                    <th class="text-center">业务端</th>
                    <th class="text-center">短信类型</th>
                    <th class="text-center">优先级</th>
                    <th class="text-center">说明</th>
                    <th class="text-center">操作</th>
                </tr>
                </thead>
                <tbody id="appList">
                <tr ng-repeat = "Item in result">
                    <td>{{ $index+1 }}</td>
                    <td class="w70">{{Item.svrNodeName}}</td>
                    <td class="w85">{{Item.serviceName}}</td>
                    <td class="w70">{{Item.level}}</td>
                    <td style="min-width: 200px; word-break: break-all;">{{Item.desc}}</td>
                    <td>
                        <a class="" data-toggle="modal" data-target="#add" ng-click="editTr(Item.recId)">修改</a>
                    </td>
                </tr>
                </tbody>
            </table>
      </div>
           <page></page>
        </div>
    </div>
</div>
<!--右侧内容结束-->
</div>
<!-- 修改程序弹框 -->
<div class="modal fade" id="add" tabindex="-1" role="dialog" aria-labelledby="add">
    <div class="modal-dialog" role="document">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                <h4 class="modal-title" id="">修改</h4>
            </div>
            <div class="modal-body bg-info">
                <div class="row marB15">
                   <span class="col-xs-6">
                      <div class="input-group  left">
                          <span class="input-group-addon">业务端</span>
                           <select class="form-control"  ng-model="addData.svrNode" disabled>
                            <option value="">全部</option>
                            <option value={{row.SVR_NODE}} ng-repeat="row in listData1">{{row.SVR_NODE_NAME}}</option>
                           </select>
                      </div>
                   </span>
                   <span class="col-xs-6">
                       <div class="input-group  left">
                           <span class="input-group-addon">短信类型</span>
                           <select class="form-control" ng-model="addData.serviceCode" disabled>
                            <option value="">全部</option>
                            <option value={{row.serviceCode}} ng-repeat="row in serviceList">{{row.serviceName}}</option>
                           </select>
                       </div>
                   </span>
                </div>
                <div class="row marB15 clearfix">
                   <span class="col-xs-6">
                      <div class="input-group  left">
                          <span class="input-group-addon">分配优先级</span>
                          <select class="form-control"  ng-model="addData.ruleId" name="">
                            <option value="">全部</option>
                            <option value={{row.ruleId}} ng-repeat="row in levelData">{{row.level}}</option>
                          </select>
                      </div>
                   </span>
                     <span class="col-xs-6">

                   </span>
                </div>
                <div class="marT15 clearfix">
                   
                       <label class="left"><span>优先级说明 ：</span></label>
                  <div style="position:relative; height:70px">
                        <textarea class="left form-control" ng-model="addData.desc" id="desc"></textarea>
                   </div>
                
                </div>
                <br>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-default btn-sm" data-dismiss="modal">取消</button>
                <button type="button" class="btn btn-primary btn-sm" ng-click='editSave()'>保存</button>
            </div>
        </div>
    </div>
</div>
<!--修改程序结束-->
<!-- 参数添加结束 -->
<!-- 提示框 -->
<div class="modal fade" id="delete">
    <div class="modal-dialog">
        <div class="modal-content message_align">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
                <h4 class="modal-title">提示信息</h4>
            </div>
            <div class="modal-body">
                <p>您确认删除吗？</p>
            </div>
            <div class="modal-footer">
                <input type="hidden" id="url"/>
                <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
                <a  onclick="urlSubmit()" class="btn btn-primary" data-dismiss="modal">确定</a>
            </div>
        </div><!-- /.modal-content -->
    </div><!-- /.modal-dialog -->
</div><!-- /.modal -->
<!-- 提示框结束 -->
<!-- 加载框 -->
  <span class='loaded' ng-show='loaded'><img  src="img/load.gif"></span>
<!-- 加载框 完成-->